package com.stylefeng.guns.rest.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * Created by ASUS-PC on 2018/6/27.
 */
@TableName(value = "vl_catagory")
public class Catalogy extends Model<Catalogy> {
    private int id;
    private String title;
    private int sort;
    @TableField(value = "image_id")
    private int imageId;
    private String backgroupUrl;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getImageId() {
        return imageId;
    }

    public void setImageId(int imageId) {
        this.imageId = imageId;
    }

    public String getBackgroupUrl() {
        return backgroupUrl;
    }

    public void setBackgroupUrl(String backgroupUrl) {
        this.backgroupUrl = backgroupUrl;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }
}
